#include"Crectangle.h"
#include<conio.h>
int main()
{
	Crectangle recta;
	recta.setValues(3,4);
	Crectangle *rectb;
	rectb = &recta;
	rectb->setValues(3, 9);
	cout << "area:" << recta.area();
	cout << "area:" << rectb->area();
	Crectangle *rectc = new Crectangle();
	rectc->setValues(5, 6);
	rectb = rectc;
	rectc->setValues(7, 8);
	cout << "area:" << rectb->area();
	cout << "area:" << rectc->area();
	delete rectc;
	_getch();
	return 0;


}